package com.ihr360.commons.serializer.jackson;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.DeserializationContext;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.IOException;

/**
 *
 */
public class EnumDataDeserilizer extends StdDeserializer<Enum> {
    private Logger logger = LoggerFactory.getLogger(this.getClass());

    public EnumDataDeserilizer(Class<?> vc) {
        super(vc);
    }

    @Override
    public Enum deserialize(JsonParser p, DeserializationContext ctxt) throws IOException, JsonProcessingException {
            JsonNode node = p.getCodec().readTree(p);
            Class hanledType = super.handledType();

            return null;
    }
}